import Layout from '@/views/layout/Layout'

const ROLES = ['admin', 'manage']

const basic = {
  path: '/basic',
  component: Layout,
  name: 'form',
  meta: {
    title: '基础信息管理',
    icon: 'documentation',
    roles: ROLES
  },
  children: [
    {
      path: 'basic-department',
      component: () => import('@/views/basic/department'),
      name: 'basic-department',
      meta: { title: '部门基础信息', icon: 'form', roles: ROLES }
    },
    {
      path: 'basic-basic',
      component: () => import('@/views/basic/basic'),
      name: 'basic-basic',
      meta: { title: '基本信息库', icon: 'form', roles: ROLES }
    }
  ]
}

export default basic
